package ooday05;
/** 点
 * */
public class Point {
    private int x;
    private int y;

    public int getX(){//getter
        return x;
    }
    public int getY(){
        return y;
    }
    public void setX(int x){//setter
        if(x>=0) {
            this.x = x;
        }
    }
    public void setY(int y){
        this.y = y;
    }
}
